package com.woniuxy.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.woniuxy.dao.RbacManagerDao;
import com.woniuxy.entity.RbacManager;
import com.woniuxy.entity.ResponseEntity;
import com.woniuxy.service.RbacManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RbacManagerServiceImpl implements RbacManagerService {
    //这个注解的required的意思：在编译期间不去检查有没有这个bean对象
    @Autowired(required = false)
    RbacManagerDao rbacManagerDao;
    @Override
    public RbacManager login(String username, String password) {
        return rbacManagerDao.login(username,password);
    }
    @Override
    public RbacManager findOne(String username) {
        return rbacManagerDao.findUser(username);

    }
}
